Skip to content

fix: final polish — handle leak, double-log, exit codes, summaries, checksums#2

Merged
FeelTheFonk merged 2 commits intomainfrom
dev
Feb 19, 2026
Merged

fix: final polish — handle leak, double-log, exit codes, summaries, checksums#2
FeelTheFonk merged 2 commits intomainfrom
dev

Conversation

@FeelTheFonk
Copy link
Owner

Summary

Polish final post-v0.0.3 — 14 défauts résiduels éradiqués, zéro fonctionnalité modifiée.

Bugs réels (Tier 1)

  • Handle leak: RegKey.Close() ajouté entre les deux OpenSubKey dans Grant-RegistryAccess
  • Double logging: Start-Transcript écrit désormais dans killSlop_transcript.txt (séparé du log structuré killSlop_log.txt)
  • Gap CI: CI déclenche maintenant sur push dev ET main (feedback immédiat sans attendre la PR)

Incohérences factuelles (Tier 2)

  • CLAUDE.md : GPO injection (12 vals)(10 vals) (décompte réel dans le script)
  • 1_prepare_safemode.ps1 : platform (23H2 / 24H2)24H2
  • Service list : commentaire SYNC-REQUIRED ajouté dans 2_kill_defender.ps1 ET 3_verify_status.ps1

Qualité & professionnalisme (Tier 3)

  • ExitExit 1 / Exit 0 dans tous les chemins de 1_prepare_safemode.ps1
  • 3_verify_status.ps1 : Start type 4Disabled (mapping human-readable, compatible PS5.1)
  • 3_verify_status.ps1 : Résumé final X/11 DISABLED | Y RUNNING (ALERT) | Z MISSING
  • 2_kill_defender.ps1 : Commentaire expliquant le choix de SilentlyContinue
  • release.yml : SHA256 checksum généré + attaché à chaque GitHub Release
  • PSScriptAnalyzerSettings.psd1 : Commentaires expliquant les règles exclues
  • .gitignore : artefactsartifacts ; ajout *.tmp, *~, .env, *.secret

Test plan

  • CI passes (PSScriptAnalyzer + syntax) sur cette PR
  • 3_verify_status.ps1 s'exécute sans erreur en PS5.1
  • Release suivante inclut .zip.sha256
  • git status clean après merge

🤖 Generated with Claude Code

FeelTheFonk and others added 2 commits February 19, 2026 15:05
…hecksums

- fix(acl): add RegKey.Close() before second OpenSubKey in Grant-RegistryAccess (handle leak)
- fix(log): Start-Transcript now writes to killSlop_transcript.txt (separate from structured log)
- fix(ci): CI now triggers on push to dev AND main for immediate feedback
- fix(prepare): all error Exit → Exit 1; user-cancel → Exit 0; platform (23H2/24H2) → 24H2
- fix(kill): add comment explaining SilentlyContinue; add SYNC-REQUIRED comment on service list
- feat(verify): human-readable StartType mapping (Disabled/Manual/Automatic); summary stats (X/11 DISABLED)
- fix(verify): PS5.1-compatible StartType mapping (no ?? operator); SYNC-REQUIRED comment
- fix(release): add SHA256 checksum generation + attach .sha256 to GitHub Release
- fix(settings): add rationale comments for excluded rules
- fix(gitignore): artefacts → artifacts; add *.tmp, *~, .env, *.secret
- fix(claude): GPO count 12 vals → 10 vals (factual); update staging dir note

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tings.psd1

Non-ASCII characters (U+2014 em dash) triggered PSUseBOMForUnicodeEncodedFile
on PowerShell 7 (GitHub Actions CI). Replaced with standard ASCII hyphens.
Lint now passes cleanly on both PS5.1 and PS7.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@FeelTheFonk FeelTheFonk merged commit dc7d139 into main Feb 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant